package exp;

import java.util.Scanner;

/**
 * 凯撒密码：把一个文章加密：
 * 规则是用这个字母的后三个字母加密A->D Y->B(循环加密）
 * 输出加密后的内容，并进行解密
 */
public class p03CaserEncypher {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String s = in.nextLine().trim();
        StringBuffer buffer = new StringBuffer();
        int temp = -3;
        for ( char c : s.toCharArray() ) {
            if (! Character.isLetter(c)){
                buffer.append(c);
            }
            if (Character.isUpperCase(c)){
                int x = c-'A';
                int y = (x+temp)%26+'A';
                buffer.append( (char)y );
            }
            if (Character.isLowerCase(c)){
                int x = c-'a';
                int y = (x+temp)%26+'a';
                buffer.append( (char)y );
            }
        }
        System.out.println(buffer);
    }
}
